{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "ef6bd771",
   "metadata": {},
   "source": [
    "## 课程表优化"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "14817c59",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "课程表查询系统\n",
      "现在的时间是： 2021/10—/10 15:36 Sunday\n",
      "请输入要查询的星期:7\n",
      "现在是周末时间\n"
     ]
    }
   ],
   "source": [
    "# 课程表\n",
    "# 要求 用户输入时间或其他可以查询该天或该个时段的课程详细信息\n",
    "print(\"课程表查询系统\")\n",
    "import time\n",
    "now_time1 = time.strftime(\"%Y/%m—/%d\")\n",
    "now_time2 = time.strftime(\"%H:%M\")\n",
    "now_time3 = time.strftime(\"%A\")\n",
    "print(\"现在的时间是：\",now_time1,now_time2,now_time3)\n",
    "\n",
    "weekday=int(input(\"请输入要查询的星期:\")) # int函数是指输入的字符串或者数字为整数\n",
    "if weekday == 1 :\n",
    "    print(\"上午 3-5节(9：45-12:00) python语言\\n下午 8-9节(14:30-15：55) 定向越野\")\n",
    "elif weekday == 2 :\n",
    "    print(\"下午 10-11节(16:10-17:35) 大英\")\n",
    "elif weekday == 3 :\n",
    "    print(\"上午 1-2节(8：00-9:30) 毛概实践\\t3-5节（9：45-12：00）毛概理论\\n晚上 12-14节(18:45-20:55) 创业基础\")\n",
    "elif weekday == 4 :\n",
    "    print(\"下午 8-9节(14:30-15：55) 大英\\t10-11节（16：10-17：35）资本市场与企业融资\")\n",
    "elif weekday == 5 :\n",
    "    print(\"上午 1-2节(8:00-9:25) AI\\t3-5节(9;45-12:00) 网站运营与管理\")\n",
    "else:\n",
    "    print(\"现在是周末时间\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f61b59cd",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
